<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>修改模块信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript">
	function confirmDelOneRecord() {
		if (window.confirm("您确认要删除这条记录吗?")) {
			self.location = "del.do?id=<c:out value='${record.id}' />";
		}
	}
</script>
</head>
<body>

	<div>
		<span class="err_msg"><c:out value="${errMsg}" /></span>
	</div>
	<form:form method="post" action="upd.do" commandName="record">
		<table class="input_table" align="center" cellspacing="0"
			cellpadding="0">
			<tr>
				<td class="input_titile_td">序号:</td>
				<td class="input_content_td"><form:hidden path="id" /> <c:out
						value="${record.id }" /></td>
			</tr>
			<tr>
				<td class="input_titile_td">系统类型<br />（0:android; 1:ios）:
				</td>
				<td class="input_content_td"><form:input path="osType" /></td>
			</tr>

			<tr>
				<td class="input_titile_td">目前版本（all:所有版本）:</td>
				<td class="input_content_td"><form:input path="oldVersion" />
				</td>
			</tr>

			<tr>
				<td class="input_titile_td">希望升级的版本(例：a.6.0.5):</td>
				<td class="input_content_td"><form:input path="newVersion" />
				</td>
			</tr>
			<tr>
				<td class="input_titile_td">升级类型<br />（0:不需要更新; 1:推荐更新；2:强制更新）
				</td>
				<td class="input_content_td"><form:input path="upgradeType" />
				</td>
			</tr>
			<tr>
				<td class="input_titile_td">创建时间</td>
				<td class="input_content_td"><fmt:formatDate
						value="${record.createTime}" pattern="yyyy-MM-dd HH:mm:ss" />
					&nbsp;</td>
			</tr>
			<tr>
				<td class="input_titile_td">修改时间</td>
				<td class="input_content_td"><fmt:formatDate
						value="${record.updateTime}" pattern="yyyy-MM-dd HH:mm:ss" />
					&nbsp;</td>
			</tr>
		</table>

		<table class="input_table" align="center" cellspacing="0"
			cellpadding="0">
			<tr>
				<td class="input_content_td" align="left"><input type="submit"
					value="修改" /> <input type="button"
					onclick="JavaScript: confirmDelOneRecord();" value="删除" /></td>
			</tr>
		</table>

	</form:form>
</body>
</html>
